<%@ page contentType="text/html; charset=UTF-8" language="java"%>
<%@ page errorPage="/error.jsp"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>用户登录</title>
<style type="text/css">
<!--
.style4 {
	FONT-SIZE: 11px
}
-->
</style>
</head>
<script language="javascript">
	function check() {
		mdiv = document.getElementById("form1");
		if (form1.username.value == "") {
			// alert("用户名不能为空");
			mdiv.innerHTML = "<font color='red'>用户名不能为空！</font>";
			form1.username.focus();
			return false;
		}
		if (form1.password.value == "") {
			mdiv.innerHTML = "<font color='red'>密码不能为空！</font>";
			form1.password.focus();
			return false;
		}
	}
</script>

<body style="height: 480px; ">
	<table width="79%" border="1" align="center" cellpadding="0"
		cellspacing="0">
		<tr>
		    <td>
		         <jsp:include page="/page/top.jsp"></jsp:include>
		    </td>	
		</tr>
		<tr>
			<td height="450">

				<table width="100%" height="91%" border="1" cellpadding="0"
					cellspacing="0">
					<form id="form1" name="form1" method="post"
						action="<%=basePath%>LoginSlt" onsubmit="return check();">

						<tr>
							<td height="28" colspan="2" align="center"
								background="<%=basePath%>images/admin_bg.gif"
								class="whitenormal">登陆平台</td>
						</tr>
						<tr>
							<td height="78" colspan="2"
								background="<%=basePath%>images/background.gif">&nbsp;</td>
						</tr>
						<tr bgcolor="F2F3F5">
							<td width="30%" align="right" class="normalText">
								用户名:&nbsp;&nbsp;</td>
							<td width="70%">&nbsp;&nbsp;&nbsp; <input type="text"
								name="username" class="textBox">
							</td>
						</tr>
						<tr bgcolor="F2F3F5">
							<td align="right" class="normalText">
								密&nbsp;&nbsp;码:&nbsp;&nbsp;</td>
							<td>&nbsp;&nbsp;&nbsp; <input type="password"
								name="password" class="textBox">
							</td>
						</tr>
						<tr align="center">
							<td colspan="2" bgcolor="E4EEFA"><input type="submit"
								value="登陆"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
								&nbsp; &nbsp; &nbsp; &nbsp; <input type="reset" value="重置">
							</td>
						</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td>
			    <jsp:include page="/page/bottom.jsp"></jsp:include>
			</td>
		</tr>
	</table>
</body>
</html>
